package progetto.misure;

public class MatriceCammini
{
	private Cammini[][] mc;


	public MatriceCammini(int n)
	{
		mc = new Cammini[n][n];
	}


	public boolean setCammini(Cammini c, int i, int j)
	{
		mc[i][j] = c;
		return true;

	}


	public Cammini getCammini(int i, int j)
	{

		return mc[i][j];

	}


	public Cammini[][] getMatrice()
	{

		return mc;

	}
	

	public int getSizeMatrice()
	{

		return mc.length;

	}


	public void stampa()
	{
		for (int i = 0; i < mc.length; i++)
		{
			for (int j = 0; j < mc.length; j++)
			{
				System.out.print("(" + i + "," + j + ")=" + mc[i][j] + " ");
			}
			;
			System.out.println("");
			System.out.println("");
		}
		;
	}

}
